|
poziția meniului |
---|
Componentă → 2D Offset |
Ateliere |
Part |
scurtătură |
Nici unul |
Prezentat în versiune |
0.17 |
A se vedea, de asemenea, |
Part Offset 3D, Part Thickness, Draft Offset |
Part 2D Offset construiește un filament/contur, paralel cu firul original, la o anumită distanță de acesta. Sau mărește/micșorează o fațetă plană, în mod similar.
Filamentul/Fațete trebuie să fie în același plan.Pot exista mai multe filamente într-un singur obiect, nu neapărat coplanar.
Instrumentul poate fi utilizat în macros și din consola python utilizând următoarea funcție:
f = App.ActiveDocument.addObject("Part::Offset2D", "Offset2D")
f.Source = #some object
f.Value = 10.0
2D offset este, de asemenea, disponibil ca o metodă de Part.Shape. Exemplu:
import Part
circle = Part.Circle().toShape()
enlarged_circle = circle.makeOffset2D(10.0)
Part.show(circle)
Part.show(enlarged_circle)
# makeOffset2D(offset, join = 0, fill = False, openResult = false, intersection = false)
#
# * offset: distance to expand the shape by.
#
# * join: method of offsetting non-tangent joints. 0 = arcs, 1 = tangent, 2 =
# intersection
#
# * fill: if true, the output is a face filling the space covered by offset. If
# false, the output is a wire/face.
#
# * openResult: True for "Skin" mode; False for Pipe mode.
#
# * intersection: collective offset
#
# Returns: result of offsetting (wire or face or compound of those). Compounding
# structure follows that of source shape.